package com.warrior.Exception;

import org.springframework.validation.BindingResult;

/**
 * Created by Shawn on 2017/3/20.
 */
public class ProjectException extends Exception {
    /**
     * @Fields serialVersionUID : 序列号
     */
    private static final long serialVersionUID = -6397607290157480572L;

    private final  transient BindingResult bindingResult;

    /**
     *
     * 创建一个新的实例 ProjectException.
     *
     * @Auther shawn
     * @param message
     */
    public ProjectException(String message) {
        super(message);
        this.bindingResult = null;
    }

    /**
     *
     * 创建一个新的实例 ProjectException.
     *
     * @Auther shawn
     * @param bindingResult
     */
    public ProjectException(BindingResult bindingResult) {
        super();
        this.bindingResult = bindingResult;
    }


    public BindingResult getBindingResult(){
        return this.bindingResult;
    }
}
